package top.scauwlt.remoting.dto;

import lombok.*;
import top.scauwlt.factory.SingletonFactory;

import java.io.Serializable;

/**
 * @author lt_wang
 * @Date 2022/7/20 23:28
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Getter
@ToString
public class RpcRequest implements Serializable {

    private static final long serialVersionUID = 855782230790622231L;
    private String requestId;
    private String interfaceName;
    private String methodName;
    private Object[] parameters;
    private Class<?>[] paramTypes;
    private String group;
    private String version;

    public String getRpcServiceName() {
        return this.getInterfaceName() + this.getGroup() + this.getVersion();
    }
}
